home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
DIAL.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
55 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_Dial(cPhoneNum, [nComPort]) --> nResult
PARAMETERS:
cPhoneNum : formatted phone number string to dial
nComPort : Optional: Com Port DEFAULT: 1
SHORT:
Dial a number on the specified com port.
DESCRIPTION:
_Dial() receives a formatted string containing a phone number to dial.
The specified com port is opened, the number is dialed and the function
closes the com port and returns a numeric return value as soon as any key
is pressed.
RETURN VALUES:
0 - No Error
-1 - Com Port Open Error
-2 - Com Port Write Error
n - Scan Code of Key Pressed
To dial a number, present a message indicating that the user should press
any key when the phone rings or to hang up. Call _Dial(). When the
phone rings, the user can press any key to issue a hang-up and the com
port will be closed. By this time, the user has picked up the handset, so
the phone line will not be hung up.
Special Characters:
"," to pause for one second.
NOTE:
EXAMPLE:
? 'Dialing Information: Press Enter to Talk or Hang up'
t = _Dial('9,,555-1212')
Result: t = <inkey code of key pressed>
******************************************************************************/